﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SummaryExample.aspx.cs" Inherits="Examples_Validations_SummaryExample" %>
<%@ Register TagPrefix="mobile"
    Namespace="System.Web.UI.MobileControls"
    Assembly="System.Web.Mobile" %>
    <mobile:Form id="Form1" runat="server">
    <mobile:Label id="Label1" runat="server">
        Your name:
    </mobile:Label>
    <mobile:TextBox id="userName" runat="server"/>
    <mobile:Label id="Label2" runat="server" >
        Password
    </mobile:Label>
    <mobile:TextBox id="password" runat="server" Password="True"/>
    <mobile:RequiredFieldValidator id="RequiredFieldValidator1"
        runat="server"
        ControlToValidate="userName"
        Display="None"
        ErrorMessage="Your name is required!"/>
    <mobile:RequiredFieldValidator id="RequiredFieldValidator2"
        runat="server"
        ControlToValidate="password"
        Display="None"
        ErrorMessage="A password is required!"/>
    <mobile:Command id="Command1" runat="server" OnClick="Command1_Click">
        Submit
    </mobile:Command>
</mobile:Form>
   
<mobile:Form id="Form2" runat="server">
    <mobile:ValidationSummary id="ValidationSummary1"
        runat="server"
        HeaderText="Missing Values:"
        FormToValidate="Form1"
        BackLabel="Retry"/>
</mobile:Form>
   
<mobile:Form id="Form3" runat="server">
    <mobile:Label runat="server">
        Error free submission.
    </mobile:Label>
</mobile:Form>